package com.yqb.study.common.mq;

public class MqMessage {
	private String exchange;
	private String routeKey;
	private Object data;

	public MqMessage(String exchange, String routeKey, Object data) {
		super();
		this.exchange = exchange;
		this.routeKey = routeKey;
		this.data = data;
	}
	
	public String getExchange() {
		return exchange;
	}
	public void setExchange(String exchange) {
		this.exchange = exchange;
	}
	public String getRouteKey() {
		return routeKey;
	}
	public void setRouteKey(String routeKey) {
		this.routeKey = routeKey;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	
	@Override
	public String toString() {
		return "MqMessage [exchange=" + exchange + ", routeKey=" + routeKey + ", data=" + data + "]";
	}
}
